package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@SpringBootApplication
public class DemoApplication  {



   public static void main(String[] args) {
       SpringApplication.run( DemoApplication.class,args);
       log.info("****************DemoApplication 启动 ************ ");
   }


    @GetMapping("index")
    public String index(){
        return "sucess";
    }

    @GetMapping("success")
    public String index2(){
        return "wangfcc";
    }

}